import { createRouter, createWebHistory } from "vue-router"
import Home from '@/views/Home/index.vue'
import About from '@/views/about/index.vue'
import Resize from '@/views/resize/index.vue'
import gridLayout from '@/views/gridLayout/index.vue'
import ThreePage from '@/views/3Dpage/index.vue'
const routes = [
  {
    path: '/',
    redirect: "/home"

  },
  {
    path: '/home',
    name: '首页',
    component: Home
  },
  {
    path: '/about',
    component: About
  },
  {
    path: '/Resize',
    component: Resize
  },
  {
    path: '/gridLayout',
    component: gridLayout
  },
  {
    path: '/3dPage',
    component: ThreePage
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router